﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;

namespace BUS
{
   public class DangNhapBUS
    {
        dataHelpper da = new dataHelpper();
        //bool KT=true ;
        public void Kieuketnoi(bool KT)
        {
            dataHelpper.Options = KT;
        }
        public bool Ket_quaKN2()
        {
            return dataHelpper.KT_Ketnoi2();

        }
        public bool KetQua_KetNoi(string sever, string database, string user, string pass)
        {
            // cai nay tao thu thoi nha
            //ti chinh lai sau
            dataHelpper.Sever = sever;
            dataHelpper.Database = database;
            dataHelpper.User = user;
            // cau len insert loi roi do
            //chinh lai di

            dataHelpper.Pass = pass;
            return dataHelpper.ktraKetnoi(dataHelpper.Sever, dataHelpper.Database, dataHelpper.User, dataHelpper.Pass);
        }
        
    }
}
